package cn.yujian95.hospital.mapper;

import cn.yujian95.hospital.entity.UserBasicInfo;
import cn.yujian95.hospital.entity.UserBasicInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface UserBasicInfoMapper {
    long countByExample(UserBasicInfoExample example);

    int deleteByExample(UserBasicInfoExample example);

    int deleteByPrimaryKey(Long id);

    int insert(UserBasicInfo record);

    int insertSelective(UserBasicInfo record);

    List<UserBasicInfo> selectByExample(UserBasicInfoExample example);

    UserBasicInfo selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") UserBasicInfo record, @Param("example") UserBasicInfoExample example);

    int updateByExample(@Param("record") UserBasicInfo record, @Param("example") UserBasicInfoExample example);

    int updateByPrimaryKeySelective(UserBasicInfo record);

    int updateByPrimaryKey(UserBasicInfo record);

    /**
     * 根据电话列表获取所有人的信息
     * @param phoneList
     * @return
     */
    List<UserBasicInfo> getListByPhones(@Param("phoneList") List<String> phoneList);

    /**
     * 根据用户编号列表，获取用户列表
     * @param userIds
     * @return
     */
    List<UserBasicInfo> getNameByUserIds(@Param("userIds") List<Long> userIds);
}